# -*- coding: utf-8 -*-

from odoo import models, fields


class BasicOldPeoplePhysicalIdentificationAssess(models.Model):
    _name = 'basic_old_people_physical_identification_assess'
    _description = '老年人自理能力评估表'

    healthCheck = fields.Char(string="体检编号", required=True)
    checkId = fields.Char(string="条码编号", required=True)
    cert_id_num = fields.Char(string="身份证号")

    dining = fields.Float(string='进餐')
    ml_scr = fields.Float(string='进餐得分')
    grooming = fields.Float(string='梳洗')
    grm_scr = fields.Float(string='梳洗得分')
    dressing = fields.Float(string='穿衣')
    drss_scr = fields.Float(string='穿衣得分')
    goto_toilet = fields.Float(string='如厕')
    tlt_scr = fields.Float(string='如厕得分')
    activity = fields.Float(string='活动')
    act_scr = fields.Float(string='活动得分')

    total_score = fields.Float(string='总得分')
    eval_date = fields.Date(string="评估日期", default=fields.Date.today())

    flup_doc = fields.Char(string="随访医生")
    mod_state = fields.Selection([
        ('0', '未修改不需上传'),
        ('1', '修改需要上传')],
        string="修改状态")
    is_delete = fields.Selection([
        ('0', '否'),
        ('1', '是')],
        string="是否删除")

    createUser = fields.Char(string="建档人")
    createUnit = fields.Char(string="建档机构")
    lastModifyUser = fields.Char(string="更新人")
    create_time = fields.Date(string="创建时间", default=fields.Date.today())
    update_time = fields.Date(string="更新时间", default=fields.Date.today())
